import { dmStrTrim, dmRandomStr,dmPwStrength } from './src/string/index'
import { dmHandleTree, dmFindParent, dmFindChild, dmFindNode } from './src/tree/index'
import { dmTimeToTimestamp, dmTimestampToTime } from './src/time/index'
import { dmDuplicateArr } from './src/array/index'
import { dmSetWaterMark, dmRemoveWatermark } from './src/watermark/index'
import { dmSetLocalStorage, dmGetLocalStorage } from './src/cache/index'

const dmWidgets = {
  // 字符串处理
  dmStrTrim,
  dmRandomStr,
  dmPwStrength,

  // 树结构处理
  dmHandleTree,
  dmFindParent,
  dmFindChild,
  dmFindNode,

  // 时间处理
  dmTimeToTimestamp,
  dmTimestampToTime,

  // 数组处理
  dmDuplicateArr,

  // 添加水印
  dmSetWaterMark, 
  dmRemoveWatermark,

  // 缓存
  dmSetLocalStorage,
  dmGetLocalStorage
}

export {
  dmWidgets,
  // 字符串处理
  dmStrTrim,
  dmRandomStr,
  dmPwStrength,

  // 树结构处理
  dmHandleTree,
  dmFindParent,
  dmFindChild,
  dmFindNode,

  // 时间处理
  dmTimeToTimestamp,
  dmTimestampToTime,

  // 数组处理
  dmDuplicateArr,

  // 添加水印
  dmSetWaterMark, 
  dmRemoveWatermark,

  // 缓存
  dmSetLocalStorage,
  dmGetLocalStorage
}